package com.huanong.it.xwcommon.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huanong.it.xwcommon.entity.Comment;

import com.huanong.it.xwcommon.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value="xw-weibo")
public interface CommentService {
    //添加评论
    @PostMapping("/cm")
    public Result<Comment> addComment(
            @RequestBody int wbid,
            @RequestBody String content);
    @DeleteMapping("/cm")
    public Result<Comment> delComment(
            @RequestBody int cmid);
    @PatchMapping("/cm")
    public Result<Comment> updateComment(
            @RequestBody int cmid,
            @RequestBody String content);
}